package com.qianji.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 钟丽诗
 * @Date 2021.3.12
 */

@ApiModel("新增奖品属性类")
@Data
public class PrizeAddVO implements Serializable {

    @NotBlank(message = "奖品名称不能为空")
    @ApiModelProperty("奖品名称")
    private String prizeName;

    @NotNull(message = "活动主键不能为空")
    @ApiModelProperty(value = "活动主键",example = "1")
    private Long activeId;

    @NotBlank(message = "奖品图片地址不能为空")
    @ApiModelProperty("奖品图片地址")
    private String prizeImg;

    @NotBlank(message = "奖品描述不能为空")
    @ApiModelProperty("奖品描述")
    private String prizeDescribe;

    @NotNull(message = "奖品数量不能为空")
    @ApiModelProperty(value = "奖品数量",example = "0")
    private Integer prizeNumber;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @NotNull(message = "奖品状态不能为空")
    @ApiModelProperty(value = "奖品状态",example = "0")
    private Integer status;

    @ApiModelProperty("跳转链接")
    private String link;

}
